package com.ccxy.springboot.controller;

import com.ccxy.springboot.service.imp.BootServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@RestController
public class layui_pageController {
    @Autowired
    private BootServiceImpl service;
    @ResponseBody
    @GetMapping("/DataShow")
    public Map<String,Object> ddd(int page, int limit){
        Map<String, Object> map = new HashMap<>();
        List<Map> ct = service.queryInfox(page,limit);
        int countxx = service.queryAllCountxx();
        map.put("data",ct);
        map.put("ct",countxx);
        return map;
    }
}
